<template v-for="(item, index) in fields">
    <el-form-item v-if="item.editType == 'date'" label="字典名称">
        <el-date-picker v-model="form.name" type="date" placeholder="选择日期" style="width: 100%"
            value-format="x" />
    </el-form-item>
    <el-form-item v-if="item.editType == 'number'" label="支出金额">
        <el-input-number v-model="form.money" :precision="2" :step="0.1" />
    </el-form-item>
    <el-form-item v-if="item.editType == 'textarea'" label="备注">
        <el-input v-model="form.remarks" type="textarea" />
    </el-form-item>
    <el-form-item v-if="item.editType == 'accountSelect'" label="支出账户">
        <el-select v-model="form.account" placeholder="请选择支出账户">
            <el-option v-for="item in accountType" :key="item.value" :label="item.name" :value="item.value" />
        </el-select>
    </el-form-item>
</template>

<script>

</script>